import { baseUrlConfig } from '@/config/config';
import request from '@/utils/request'
const bastPath = baseUrlConfig.processBaseUrl;

const fastUrl = baseUrlConfig.fastUrl;

export const esSearchList = (data: any) => {
  return request({
    url: bastPath + '/knowledge/documentSearch/searchHighlight?keyword='+data,
    method: 'get',
  })
};

// 下载文件
export const downloadFiles = (enclosureCode:any) => {
    return request({
        url: fastUrl + `/downloadFile?enclosureCode=${enclosureCode}`,
        method: 'get',
        responseType: "blob",
    })
};
